package com.jdd.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jdd.dao.entity.TProject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 项目表 Mapper 接口
 * </p>
 *
 * @author zly
 * @since 2022-03-23
 */
public interface TProjectMapper extends BaseMapper<TProject> {
    void bind(@Param(value = "projectId")String projectId, @Param(value = "areaId")String areaId,@Param(value = "areaName")String areaName);

//    void bindName(@Param(value="projectId") String projectId,@Param(value = "areaName") String areaName);

    List<TProject> selectByAreaId(@Param(value = "areaId")String areaId);
    List<TProject> selectByAreaIds(@Param(value = "areaIds")List<String> areaIds);
    String getOrgCodeLastCreateProject();
    List<String> getIdsByProjectCode(@Param(value = "projectCode") String projectCode);

    boolean removeBind(@Param(value = "id") String id);
}
